# -*- coding: utf-8 -*-
# @Time    : 2024/8/30 下午2:27
# @Author  : wb
# @Email   : wb@163.com
# @File    : client_page
# @Software: PyCharm

from time import sleep
from pages.wb_base_page import BasePage
from selenium.webdriver.common.by import By


class ClientAddContractPag(BasePage):
    url = '/crm'
    # 定位器
    '''获取添加合同按钮元素'''
    add_contract_locator = (By.LINK_TEXT, '添加')

    # 浏览器操作
    def click_add_contract(self):
        '''点击添加'''
        self.driver.find_element(*self.add_contract_locator).click()
